package org.byqh.dqeai.entity;

import com.easy.query.core.annotation.Column;
import com.easy.query.core.annotation.EntityFileProxy;
import com.easy.query.core.annotation.Table;
import com.easy.query.core.proxy.ProxyEntityAvailable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.byqh.dqeai.entity.proxy.SysUserIpbindProxy;

import java.time.LocalDateTime;

/**
 * 用户IP地址绑定登录 实体类。
 *
 * @author easy-query-plugin automatic generation
 * @since 1.0
 */
@Data
@Schema(name = "SysUserIpbind", description = "用户IP地址绑定登录")
@Table(value = "SYS_USER_IPBIND")
@EntityFileProxy
public class SysUserIpbind implements ProxyEntityAvailable<SysUserIpbind, SysUserIpbindProxy> {

    /**
     * 记录ID,随机GUID
     */
    @Schema(description = "记录ID,随机GUID", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(primaryKey = true, value = "ID")
    private String id;

    /**
     * 用户登录唯一标识
     */
    @Schema(description = "用户登录唯一标识", requiredMode = Schema.RequiredMode.REQUIRED)
    @Column(value = "USER_ID")
    private String userId;

    /**
     * 用户IP地址
     */
    @Schema(description = "用户IP地址")
    @Column(value = "IP")
    private String ip;

    /**
     * 0表示未启用;1表示启用
     */
    @Schema(description = "0表示未启用;1表示启用")
    @Column(value = "ACTIVE")
    private String active;

    /**
     * 操作的用户中文名称
     */
    @Schema(description = "操作的用户中文名称")
    @Column(value = "OP_USER")
    private String opUser;

    /**
     * 操作日期
     */
    @Schema(description = "操作日期", example = "yyyy-MM-dd HH:mm:ss")
    @Column(value = "OP_DATE")
    private LocalDateTime opDate;

    /**
     * 备注
     */
    @Schema(description = "备注")
    @Column(value = "REMARKS")
    private String remarks;
}
